package com.bjtu.restaurantreviews.exception;

import com.bjtu.restaurantreviews.enums.ResultEnum;

/**
 * @Author: Chen
 * @Description: 自定义异常类
 * @Date: Created in 22:00 2018/4/4
 */
public class UserException extends RuntimeException{
    private Boolean sucess;
    public UserException(ResultEnum resultEnum){
        super(resultEnum.getInfo());
        sucess = resultEnum.isSucess();
    }

    public Boolean getSucess() {
        return sucess;
    }

    public void setSucess(Boolean sucess) {
        this.sucess = sucess;
    }
}
